<?php
defined('BASEPATH') OR exit('No direct script access allowed');



class Demo extends CI_Controller {

	public function index(){
		//$this->load->view('site/index');
	}

	public function url1(){
		echo "<pre>";
		print_r($_GET);
	}

	public function process_url1(){
		echo __FUNCTION__;
	}

	public function helper(){
		//$this->load->helper('common');
		echo getExtName('/site/yueya.com/images/aaa.jpg');
	}

	/**
	 * 这个是伪静态的例子
	 * @param $p1
	 * @param $p2
	 */
	public function route($id, $name){
		echo $id."<br>";
		echo $name."<br>";

		echo '<pre>';
		print_r($this->uri->segment_array());
	}

	public function test(){
		echo "1";
		log_message('error', 'Some variable did not contain a value.');
		log_message('debug', 'Some variable was correctly set');
		log_message('info', 'The purpose of some variable is to provide some value.');
	}

}
